package com.bjb.vr.operation.openfeign;

import com.bjb.vr.common.ao.OpenTenantAo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * openfeign远程调用客户端
 *
 * @version 1.0.0
 * @author: HuJingBo
 * @time: 2022/3/21 15:52
 */
@FeignClient(value = "xr-auth")
public interface OpenService {

    /**
     * 根据条件查询资源列表
     *
     * @param authorization
     * @param openTenantAo
     * @return
     */
    @PostMapping("/api/auth/feign/v1/queryTenantInfo")
    Object queryTenantInfo(@RequestHeader(value = "Authorization") String authorization, @RequestBody OpenTenantAo openTenantAo);
}
